power: Explicitly select pmic device's bus
authorAaron Durbin <[email protected]>
Tue, 20 May 2014 12:01:38 +0000 (06:01 -0600)
committerMinkyu Kang <[email protected]>
Wed, 28 May 2014 01:58:19 +0000 (10:58 +0900)
commit0b259dc2e849183dfea604fa137bb616e09b319a
tree2dd60aab6e8ea483fc3a0080bf0d09c6bc6b5f19
parent2469bf35a8c4fde242300c8123406cdc3b3b464c
power: Explicitly select pmic device's bus

The current pmic i2c code assumes the current i2c bus is
the same as the pmic device's bus. There is nothing ensuring
that to be true. Therefore, select the proper bus before performing
a transaction.

Signed-off-by: Aaron Durbin <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
Acked-by: Heiko Schocher <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
drivers/power/power_i2c.c